home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga News 96
/
Amiga News 96.iso
/
amig_ad_os
/
amitex
/
arexx
/
choixmarges.amitex
< prev
next >
Wrap
Text File
|
1996-12-30
|
970b
|
40 lines
/* Choix des marges pour formatage de texte */
/* Chez Corbin, 30 décembre 1996, version 1.00 */
options results
cr = '0a'x
mg=getclip(marge_gauche)
md=getclip(marge_droite)
if mg<md then do
'REQUEST("Les valeurs des marges'cr'sont respectivement'cr'marge gauche = 'mg cr'marge droite = 'md cr cr'Voulez-vous les modifier ?")'
if result < 1 then exit
end
continuer=1
do while continuer
'PICKCOL("Cliquez sur la marge gauche")'
mg = result
if mg <= 0 then do
'MESSAGE("Opération annulée")'
exit
end
'PICKCOL("Cliquez sur la marge droite")'
md = result
if md <= 0 then do
'MESSAGE("Opération annulée")'
exit
end
if mg >= md then do
'MESSAGE("Valeurs incorrectes")'
exit
end
a = setclip(marge_gauche,mg)
a = setclip(marge_droite,md)
'REQUEST("Les valeurs des marges'cr'sont maintenant'cr'marge gauche = 'mg cr'marge droite = 'md||cr'Voulez-vous les modifier ?")'
if result~=1 then continuer=0
end